package com.epichust.bootumpp.model.dao;

import com.epichust.bootumpp.model.bo.Umpp5PlanOrderPublishBO;
import com.epichust.bootumpp.model.entity.Umpp5ProOpCode;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface Umpp5ProOpCodeDao {

    /**
     * 查询所有的产品工序
     * @return
     */
    public List<Umpp5ProOpCode> getAllUmpp5ProOpCode(Map<String,String> map);

    /**
     * 根据订单号查询所有工序信息
     * @param map
     * @return
     */
    public List<Umpp5PlanOrderPublishBO> getUmpp5PlanOrderWithOp(Map<String,Object> map);

    /**
     * 根据订单号查询记录条数
     * @param map
     * @return
     */
    public String getUmpp5PlanOrderWithOpRecords(Map<String,Object> map);

    /**
     * 插入产品工序
     * @param umpp5ProOpCode
     * @return
     */
    int insertUmpp5ProOpCode(Umpp5ProOpCode umpp5ProOpCode);

    /**
     * 更新产品工序
     * @param umpp5ProOpCode
     * @return
     */
    int updateUmpp5ProRouteLine(Umpp5ProOpCode umpp5ProOpCode);
}
